extends Node2D

@onready var host: LineEdit = $UI/Host

func _ready() -> void:
	host.text = GlobalData.serverIP

func _on_join_button_down() -> void:
	GlobalData.serverIP = host.text
	GlobalData.isServer = false
	get_tree().change_scene_to_file("res://main_scene.tscn")
